﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>
  
</head>

<body class="ms-theme-blue">

  <%@ include file="/WEB-INF/include/header.jsp"%>
  <%@ include file="/WEB-INF/include/submenu.jsp"%>

  <div class="container-fluid umu-container has-umu-sidemenu">
    <div class="umu-breadcrumb">
      <div class="breadcrumb">项目课程报表</div>
    </div>
    

    <div class="panel-default beast-panel beast-panel-layout">

      <div class="panel-body">

        <div class="col-xs-12 beast-panel-layout-right">

    		  <div class="ms-content-layout">
		      <div class="ms-operation-bar no-margin no-bottom-border clearfix">
		        <div class="ms-operation-group pull-right">
		          <a href="${ctx.host}/reports/project-course-report-export?${queryString}" class="btn btn-shadow-success btn-shadow umu-btn" <c:if test="${recordCount==null || recordCount<1 }">disabled</c:if>>
		            <i class="glyphicon glyphicon-send"></i>&nbsp;&nbsp;导出
		          </a>
		        </div>
		      </div>		    
		    
		    
		      <table class="table table-hover umu-table tab-pane table-striped">
		        <thead>
		          <tr>
					<th>项目编号</th>
					<th>培训项目名称</th>
					<th>第X期</th>
					<th>课程名称</th>
					<th>是否标准课程</th>
					<th>课程类型</th>
					<th>是否内部讲师</th>
					<th>讲师工号</th>
					<th>讲师邮箱</th>
					<th>讲师姓名</th>
					<th>课程时长</th>
		          </tr>
		        </thead>
		        
		        <tbody>
					<c:forEach items="${projectReports}" var="projectReport">
			            <tr>
			              <td>${projectReport.projectPhase.project.code}</td>
			              <td>${projectReport.projectPhase.project.name}</td>
			              <td>第${projectReport.projectPhase.phase}期</td>
			              <td>${projectReport.course.name}</td>
			              <td>${projectReport.course.property}</td>
			              <td>${projectReport.course.type}</td>
                          <td><c:if test="${projectReport.trainer !=null}">${projectReport.course.stand}</c:if>
			              <td><c:if test="${projectReport.trainer !=null}">${projectReport.trainer.code}</c:if></td>
			              <td><c:if test="${projectReport.trainer !=null}">${projectReport.trainer.email}</c:if></td>
			              <td><c:if test="${projectReport.trainer !=null}">${projectReport.trainer.name}</c:if></td>
			              <td>${projectReport.course.hour}</td>
			            </tr>
			          </c:forEach>		        
					 
		        </tbody>
		        <tfoot>
		          <tr>
		            <td colspan="11" class="no-vertical-padding">
		              <div class="pull-left">
		                <jsp:include page="/WEB-INF/include/page.jsp">
		                  <jsp:param name="url" value="${ctx.host}/project-course-report" />
		                  <jsp:param name="queryString" value="${queryString}" />
		                </jsp:include>
		              </div>
		            </td>
		          </tr>
		        </tfoot>
		      </table>
		    </div>           
        </div>

      </div>

    </div>

  </div>

  <%@ include file="/WEB-INF/include/footer.jsp"%>
  <%@ include file="/WEB-INF/include/script.jsp"%>

</body>
</html>